package com.mathassistant.client.service;

import com.google.gwt.user.client.rpc.AsyncCallback;
import com.mathassistant.shared.UserDTO;

public interface MyUserServiceAsync {

	void getUserLogin(AsyncCallback<UserDTO> callback);

	void createUserAccount(UserDTO user, AsyncCallback<Boolean> callback);

	void getUser(String email, AsyncCallback<UserDTO> callback);

	void checkEmailExist(String email, AsyncCallback<Boolean> callback);

	void Login(UserDTO user, AsyncCallback<UserDTO> callback);

	void Login(String name, String passAcc, AsyncCallback<UserDTO> callback);

	void updateUserAccount(UserDTO user, AsyncCallback<Void> callback);

	void deleteUserAccount(UserDTO user, AsyncCallback<Void> callback);

	void deleteUserAccount(String id, AsyncCallback<Void> callback);

}
